# -*-.coding:utf8-*-
# while循环
# 打印直角三角形边长为6个*的
def printTriangle():
    for i in range(10):
        for j in range(0,10-i):
            print(end=" ")
        for k in range(10-i,10):
            print("*",end=" ")
        print('')
printTriangle()
# 倒三角形
def printTriangleDx():
    for i in range(0,11) :
        for j in range(i,11):
            print("*",end=" ")
        for k in range(i+1,11-i):
            print(end="")
        print("")
# printTriangleDx();